package jmlee.basic;

import java.util.Scanner;

public class Tax {

	public static void main(String[] args) {
		String single;
		String married;
		int annualSalay;
		double tax = 0;
		double taxRate1 = 0.1;
		double taxRate2 = 0.25;
		double taxRate3 = 0.15;
		double taxRate4 = 0.35;
		
		Scanner sc = new Scanner(System.in);
		System.out.print("결혼여부 : ");
		single = sc.next();
		
		System.out.print("연봉 : ");
		annualSalay = sc.nextInt();
		sc.close();
		
		//System.out.println(single);
		
		if(single.equals("미혼")){
			if(annualSalay < 3000){
				tax = annualSalay * taxRate1;
			}else if(annualSalay >= 3000){
				tax = annualSalay * taxRate2;
			}
		}else if(single.equals("기혼")){
			if(annualSalay < 6000){
				tax = annualSalay * taxRate3;
			}else if(annualSalay >= 6000){
				tax = annualSalay * taxRate4;
			}
		}else{
		}
		System.out.println("당신의 세금은 "+tax+"만원 입니다.");
		//System.out.println(35/100);
	}

}
